﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Master/MasterPage.master" AutoEventWireup="false" CodeFile="TrackPossession.aspx.vb" Inherits="UCMain_SumTP_request" %>

<%@ Register assembly="Brilliant.Presentation.WebControls" namespace="Brilliant.Presentation.WebControls" tagprefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table width:100% style="width: 100%">
 
            <td style="width: 33%" class="lblNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                Search by</td>
            <td>
                <asp:RadioButtonList ID="rdoAP" runat="server" RepeatDirection="Horizontal">
                    <asp:ListItem Value="2">All</asp:ListItem>
                    <asp:ListItem Value="0">TP not approved</asp:ListItem>
                    <asp:ListItem Value="1">TP approved</asp:ListItem>
                </asp:RadioButtonList>
            </td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td style="width: 33%; text-align: center;" class="lblNormal">Slect Date</td>
            <td colspan="3">
                From
                        <cc1:DatePicker ID="txtDateStart" runat="server" Language="English" Width="80px"></cc1:DatePicker>
                    &nbsp;&nbsp; To
                    <cc1:DatePicker ID="txtDateEnd" runat="server" Language="English" Width="80px"></cc1:DatePicker>
                &nbsp;
                        <asp:Button ID="BtnSearch" runat="server" Text="Search" 
                            CssClass="txtNormal" />
            </td>
        </tr>
        </table>
     <table class="auto-style1">
        <tr>
            <td style="width: 5%">&nbsp;</td>
            <td style="width: 10%">&nbsp;</td>
            <td>&nbsp;</td>
            <td style="width: 77px">&nbsp;</td>
            <td style="width: 141px">&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td colspan="11" style="text-align: center" class="bgTable">Summary of track possession requested</td>
        </tr>
        <tr>
            <td colspan="11" style="text-align: center">&nbsp;</td>
        </tr>
        <tr>
            <td colspan="11" style="text-align: center">
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Height="74px" BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px" CellPadding="3" GridLines="Vertical" EmptyDataText="Data Not Found">
                    <AlternatingRowStyle BackColor="#DCDCDC" />
                    <Columns>
                             <asp:TemplateField HeaderText="Edit">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/img/edit_button.gif" CommandArgument='<%# bind("ID_REQUEST_FORM") %>' CommandName="bedit" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Status AP">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:ImageButton ID="imgBAP" runat="server" ImageUrl="~/img/Cod_Fsfe_Passed_Icon_clip_art_small.png" CommandArgument='<%# bind("ID_REQUEST_FORM") %>' CommandName="approve" Height="30px" Width="30px" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="TP_NO" HeaderText="TPNo" />
                        <asp:BoundField HeaderText="Start work" DataField="DUR_WORK_FORM" />
                        <asp:BoundField HeaderText="Finish work" DataField="DUR_WORK_TO" />
                        <asp:TemplateField HeaderText="Conflict">
                            <EditItemTemplate>
                                
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="lblConflict" runat="server"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="ID" Visible="false">
                            <EditItemTemplate></EditItemTemplate>
                            <ItemTemplate>
                                 <asp:Label ID="lblID" runat="server" Text='<%# Bind("ID_REQUEST_FORM")%>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                         <asp:TemplateField HeaderText="East" Visible="false">
                            <EditItemTemplate></EditItemTemplate>
                            <ItemTemplate>
                                 <asp:Label ID="lblEast" runat="server" Text='<%# Bind("WORK_LOCA_E")%>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="West" Visible="false">
                            <EditItemTemplate></EditItemTemplate>
                            <ItemTemplate>
                                 <asp:Label ID="lblWest" runat="server" Text='<%# Bind("WORK_LOCA_W")%>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="From" Visible="false">
                            <EditItemTemplate></EditItemTemplate>
                            <ItemTemplate>
                                 <asp:Label ID="lblFrom" runat="server" Text='<%# Bind("WORK_LOCA_FROM")%>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="To" Visible="false">
                            <EditItemTemplate></EditItemTemplate>
                            <ItemTemplate>
                                 <asp:Label ID="lblTo" runat="server" Text='<%# Bind("WORK_LOCA_TO")%>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Location from-to">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# bind("work_localW") %>'></asp:Label>
                                &nbsp;<asp:Label ID="Label8" runat="server" Text='<%# bind("work_localE") %>'></asp:Label>
                                <asp:Label ID="Label6" runat="server" Text='<%# bind("st_si") %>'></asp:Label>
                                &nbsp;:
                                <asp:Label ID="Label7" runat="server" Text='<%# bind("WE") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField HeaderText="Section" DataField="sc" />
                        <asp:BoundField HeaderText="Description of work" DataField="desc_work" />
                        <asp:BoundField HeaderText="Energized required" DataField="energ_req" />
                        <asp:BoundField HeaderText="Refer to STPA" DataField="energ" />
                        <asp:TemplateField HeaderText="Train/Vehicles" Visible="true">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("TRAIN_VIHECLES_REQ") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                Train :&nbsp;<asp:Label ID="Label3" runat="server" Text='<%# Bind("train") %>'></asp:Label>
                                &nbsp; / Vehicles :
                                <asp:Label ID="Label4" runat="server" Text='<%# Bind("vihecle") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Train">
                            <EditItemTemplate>
                                <asp:TextBox ID="txtTrainName" runat="server" Text='<%# Bind("Trains") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="lblTrainName" runat="server" Text='<%# Bind("Trains")%>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Vihacles">
                            <EditItemTemplate>
                                <asp:TextBox ID="txtTrainName" runat="server" Text='<%# Bind("Vihacles")%>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="lblVihacleName" runat="server" Text='<%# Bind("Vihacles")%>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="status" Visible="False">
                            <ItemTemplate>
                                <asp:Label ID="lblst" runat="server" Text='<%# bind("st") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <EmptyDataRowStyle ForeColor="Red" HorizontalAlign="Center" CssClass="lblError" />
                    <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
                    <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                    <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
                    <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#F1F1F1" />
                    <SortedAscendingHeaderStyle BackColor="#0000A9" />
                    <SortedDescendingCellStyle BackColor="#CAC9C9" />
                    <SortedDescendingHeaderStyle BackColor="#000065" />
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td colspan="11" style="text-align: center">&nbsp;</td>
        </tr>
        <tr>
            <td colspan="11" style="text-align: center">
                <asp:GridView ID="GridViewTPnotapproved" runat="server" AutoGenerateColumns="False" Height="74px" BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px" CellPadding="3" GridLines="Vertical">
                    <AlternatingRowStyle BackColor="#DCDCDC" />
                    <Columns>
                        <asp:BoundField HeaderText="Start work" DataField="DUR_WORK_FORM" />
                        <asp:BoundField HeaderText="Finish work" DataField="DUR_WORK_TO" />
                        <asp:BoundField HeaderText="Location from" DataField="Location Form" />
                        <asp:BoundField HeaderText="Location to" DataField="Location To" />
                        <asp:BoundField HeaderText="Section" DataField="section" />
                        <asp:BoundField HeaderText="Description of work" DataField="DESC_OD_WORK" />
                        <asp:BoundField HeaderText="Energized required" DataField="POWER_REQ" />
                        <asp:BoundField HeaderText="Refer to STPA" DataField="STPA_E16W16" />
                        <asp:BoundField HeaderText="Train/Vehicles" DataField="TRAIN_VIHECLES_REQ" />
                        <asp:BoundField HeaderText="Approve" />
                    </Columns>
                    <EmptyDataRowStyle ForeColor="Red" HorizontalAlign="Center" />
                    <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
                    <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                    <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
                    <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#F1F1F1" />
                    <SortedAscendingHeaderStyle BackColor="#0000A9" />
                    <SortedDescendingCellStyle BackColor="#CAC9C9" />
                    <SortedDescendingHeaderStyle BackColor="#000065" />
                </asp:GridView>
            </td>
        </tr>
            <td style="width: 5%; height: 19px; text-align: center;"</td>
            <td style="width: 10%; height: 19px; text-align: center;"</td>
            <td style="text-align: center;" colspan="2" class="auto-style1"</td>
            <td style="height: 19px; width: 141px; text-align: center;"</td>
            <td style="text-align: center;" colspan="3" class="auto-style1"</td>
            <td style="width: 1%; text-align: center; height: 19px;" </td>
            <td style="width: 5%; text-align: center; height: 19px;"</td>
            <td style="width: 5%; text-align: center; height: 19px;" </td>
        </tr>
        <tr>
            <td style="height: 24px;" colspan="8" id="GirdViewTPapproved">
                <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" Height="74px" BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px" CellPadding="3" GridLines="Vertical">
                    <AlternatingRowStyle BackColor="#DCDCDC" />
                    <Columns>
                        <asp:BoundField HeaderText="TP.No." />
                        <asp:BoundField HeaderText="Start work" DataField="DUR_WORK_FORM" />
                        <asp:BoundField HeaderText="Finish work" DataField="DUR_WORK_TO" />
                        <asp:BoundField HeaderText="Location from" DataField="Location Form" />
                        <asp:BoundField HeaderText="Location to" DataField="Location To" />
                        <asp:BoundField HeaderText="Section" DataField="section" />
                        <asp:BoundField HeaderText="Description of work" DataField="DESC_OD_WORK" />
                        <asp:BoundField HeaderText="Energized required" DataField="POWER_REQ" />
                        <asp:BoundField HeaderText="Refer to STPA" DataField="STPA_E16W16" />
                        <asp:BoundField HeaderText="Train/Vehicles" DataField="TRAIN_VIHECLES_REQ" />
                    </Columns>
                    <EmptyDataRowStyle ForeColor="Red" HorizontalAlign="Center" />
                    <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
                    <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                    <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
                    <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#F1F1F1" />
                    <SortedAscendingHeaderStyle BackColor="#0000A9" />
                    <SortedDescendingCellStyle BackColor="#CAC9C9" />
                    <SortedDescendingHeaderStyle BackColor="#000065" />
                </asp:GridView>
            </td>
        </tr>
        
        <tr>
            <td style="width: 5%; height: 24px;">&nbsp;</td>
            <td style="width: 10%; height: 24px; text-align: center;">&nbsp;</td>
            <td style="height: 24px; width: 10%; text-align: center;">&nbsp;</td>
            <td style="height: 24px; width: 77px; text-align: center;">&nbsp;</td>
            <td style="height: 24px; width30%: ; width: 141px;">&nbsp;</td>
            <td style="height: 24px; width: 5%; text-align: center;">&nbsp;</td>
            <td style="height: 24px; width: 7%; text-align: center;">&nbsp;</td>
            <td style="height: 24px; width: 7%; text-align: center;">&nbsp;</td>
        </tr>
        
        <tr>
            <td style="width: 5%; height: 24px;">&nbsp;</td>
            <td style="width: 10%; height: 24px; text-align: center;">&nbsp;</td>
            <td style="height: 24px; width: 10%; text-align: center;">&nbsp;</td>
            <td style="height: 24px; width: 77px; text-align: center;">&nbsp;</td>
            <td style="height: 24px; width30%: ; width: 141px;">&nbsp;</td>
            <td style="height: 24px; width: 5%; text-align: center;">&nbsp;</td>
            <td style="height: 24px; width: 7%; text-align: center;">&nbsp;</td>
            <td style="height: 24px; width: 7%; text-align: center;">&nbsp;</td>
        </tr>
        
    </table>
</asp:Content>

